﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data;
using DataLib.Common;
using System.Drawing;
using DataLib.Accounts.Bus;

namespace Ewts.BaseData
{
    public partial class PlateNumberList : System.Web.UI.Page
    {



        DataLib.BLL.PlateNumber bll = new DataLib.BLL.PlateNumber();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BindData();
            }
        }

        protected void BindData()
        {
            DataTable dt = new DataLib.BLL.PlateNumber().GetList("").Tables[0];
            reptPlate.DataSource = dt;
            reptPlate.DataBind();
        }

        protected string GetTrName(string transID)
        {
            string trName = "";

            DataLib.Model.TransportCompany tranComM = new DataLib.BLL.TransportCompany().GetModel(int.Parse(transID));
            trName = tranComM.companyname;

            return trName;
        }

    }
}